﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AspNetCs.Model;
using AspNetCs.Bll;
using System.Data;
using System.Collections;
using AspNetCs.Enumerations;
using AspNetCs.Enumerations.memorial_enum;
using AspNetCs.Enumerations.User_Enum;
using AspNetCs.Common;
using AspNetCs.Enumerations.Channel_Enum;
using AspNetCs.Config;


public partial class Users_ReciveMessagesManage : BasePage
{
    protected City city = new City();
    MessageBLL bll = Message_BLL.CreateNew;

    protected void Page_Load(object sender, EventArgs e)
    {
        CheckUserExit("Login.Aspx?ReUrl=" + configInfo.InstallDir + "Users/ReciveMessagesManage.aspx", "请您登录", true);
        if (!IsPostBack)
        {
            dataBind();
        }

    }


    protected void dataBind()
    {
        string cmdText = "select *,CreateName=(select UserName from Users where Userid=ReciverId) from Message where IsDel=0 and ReciverIsMaster=0 and ReciverId=" + Base_GetUserInfo.UserId + " and SenderId!=0 order by id desc";
        AspNetCs.Common.DataPagesOperate operate = new DataPagesOperate();

        operate.BindRepeater(cmdText, AspNetPager1, "id desc", "id", rptNetMus);


    }


    protected void rptNetMus_ItemCommand(object source, RepeaterCommandEventArgs e)
    {
    }

    protected void AspNetPager1_PageChanged(object sender, EventArgs e)
    {
        dataBind();
    }
}
